﻿<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/ZakaBackOfficeMaster.Master"
    CodeBehind="ZakaBOJogos.aspx.vb" Inherits="ZakaBackOffice.WebForm4" Title="BackOffice" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="FeedBackUserMessage/Mensagem.ascx" TagName="Mensagem" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:UpdatePanel ID="updPanel1" runat="server">
        <ContentTemplate>
            <table width="100%">
                <tr>
                    <td>
                        <uc1:Mensagem ID="Message" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:GridView ID="gvJogos" runat="server" AutoGenerateColumns="False" BackColor="White"
                            BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" 
                            CellPadding="3" Font-Size="7.5"
                            ForeColor="Black" GridLines="None" Width="100%" AllowPaging="true" 
                            PageSize="5">
                            <PagerSettings FirstPageText="Primeira" LastPageText="Ultima" 
                                Mode="NextPreviousFirstLast" NextPageText="Seguinte" 
                                PreviousPageText="Anterior" />
                            <Columns>
                                <asp:BoundField DataField="IDJogos" HeaderText="IDJogos" ReadOnly="True" SortExpression="IDJogos" />
                                <asp:BoundField DataField="Data" DataFormatString="{0:d}" HeaderText="Data" ReadOnly="True"
                                    SortExpression="Data" />
                                <asp:BoundField DataField="Resultado" HeaderText="Resultado" ReadOnly="True" SortExpression="Resultado" />
                                <asp:BoundField DataField="GolosEA" HeaderText="GolosEA" ReadOnly="True" SortExpression="GolosEA" />
                                <asp:BoundField DataField="GolosEB" HeaderText="GolosEB" ReadOnly="True" SortExpression="GolosEB" />
                                <asp:BoundField DataField="MVP" HeaderText="MVP" ReadOnly="True" SortExpression="MVP" />
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lnkEditar" runat="server" CausesValidation="False" CommandArgument='<%#Eval("IDJogos") %>'
                                            CommandName="Editar"> <img 
                                        src="icons/icon_alterar.png" style='border-width:0px;' /> Editar</asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lnkApagar" runat="server" CausesValidation="False" CommandArgument='<%#Eval("IDJogos") %>'
                                            CommandName="Apagar"> <img 
                                        src="icons/icon_cancel.png" style='border-width:0px;' /> Apagar</asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <FooterStyle BackColor="#CCCCCC" />
                            <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                            <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
                            <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                            <AlternatingRowStyle BackColor="#CCCCCC" />
                        </asp:GridView>
                    </td>
                </tr>
                <tr>
                    <td>
                        <cc1:Accordion ID="Accordion1" runat="server" SelectedIndex="1" AutoSize="None" FadeTransitions="True"
                            RequireOpenedPane="False" HeaderCssClass="accordionHeader" HeaderSelectedCssClass="accordionHeaderSelected"
                            ContentCssClass="accordionContent">
                            <Panes>
                                <cc1:AccordionPane ID="accAlterar" runat="server">
                                    <Header>
                                        <asp:Label ID="lblAccAlterar" runat="server"></asp:Label>
                                    </Header>
                                    <Content>
                                        <table>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="Label2" runat="server" Text="Data:"></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtData" runat="server"></asp:TextBox>&nbsp;<asp:ImageButton ID="imgCalendario"
                                                        runat="server" ImageUrl="~/icons/calendario.png" />
                                                    <cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender3" runat="server" TargetControlID="txtData"
                                                        WatermarkCssClass="watermarked" WatermarkText="Escreva aqui a Data do Jogo.">
                                                    </cc1:TextBoxWatermarkExtender>
                                                    <cc1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtData"
                                                        Format="dd-MM-yyyy" PopupPosition="Right" PopupButtonID="imgCalendario">
                                                    </cc1:CalendarExtender>
                                                </td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="Label3" runat="server" Text="Resultado:"></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtResultado" runat="server"></asp:TextBox>
                                                    <cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender2" runat="server" TargetControlID="txtResultado"
                                                        WatermarkCssClass="watermarked" WatermarkText="Escreva aqui o Resultado do Jogo.">
                                                    </cc1:TextBoxWatermarkExtender>
                                                </td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="Label4" runat="server" Text="Golos Equipa A:"></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtGolosA" runat="server"></asp:TextBox>
                                                    <cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server" TargetControlID="txtGolosA"
                                                        WatermarkCssClass="watermarked" WatermarkText="Golos da equipa A.">
                                                    </cc1:TextBoxWatermarkExtender>
                                                </td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="Label1" runat="server" Text="Golos Equipa B:"></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtGolosB" runat="server"></asp:TextBox>
                                                    <cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender4" runat="server" TargetControlID="txtGolosB"
                                                        WatermarkCssClass="watermarked" WatermarkText="Golos da equipa B.">
                                                    </cc1:TextBoxWatermarkExtender>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="Label6" runat="server" Text="MVP:"></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:DropDownList ID="ddlMVP" runat="server">
                                                    </asp:DropDownList>                                                  
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                </td>
                                                <td>
                                                    <asp:LinkButton ID="lnkGravar" runat="server" CausesValidation="False">
                    <img src="icons/icon_save.png" style='border-width:0px;' />
                    Gravar</asp:LinkButton>
                                                    &nbsp;&nbsp;&nbsp;
                                                    <asp:LinkButton ID="lnkCancelar" runat="server" CausesValidation="False">
                    <img src="icons/icon_cancel.png" style='border-width:0px;' />
                    Cancelar</asp:LinkButton>
                                                </td>
                                                <td>
                                                </td>
                                            </tr>
                                        </table>
                                    </Content>
                                </cc1:AccordionPane>
                            </Panes>
                        </cc1:Accordion>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
